#include"mediator.h"
#include"colleague.h"
void IMediator::unRegisterColleague(IColleague *colleague){
    for(auto it:m_colleagues)
        if(it->getName()==colleague->getName())
            m_colleagues.removeOne(colleague);
}

QList<IColleague *> IMediator::getColleagues() const{
    return m_colleagues;
}
void IMediator::registerColleague(IColleague *colleague){
    m_colleagues<<colleague;
}
